package com.wanxi.product.mapper;

import com.wanxi.product.service.api.entity.Type;
import com.wanxi.product.service.api.query.admin.TypeQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface TypeMapper {
    int add(Type type);

    List<Type> findAll(TypeQuery typeQuery);

    Type findById(Long typeId);

    int delete(Long typeId);

    int update(Type type);
}
